import pymysql
import pytest
from config.config import *

@pytest.fixture(scope='session',autouse=True)
def destory_data():
    yield
    conn = pymysql.Connect(
        host=DB_HOST,
        port=DB_PORT,
        database=DB_NAME,
        user=DB_USER,
        password=DB_PASSWORD,
        charset='utf8'
    )
    cur = conn.cursor()
    cur.execute(sql3)
    cur.close()
    conn.close()